package com.homestead.controller.req;

import com.homestead.bo.CouponThemeConditionBo;
import com.homestead.convert.AbstractConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

/**
 * @author yhb
 * @date 2021-04-09 11:46
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "券主题条件查询-入参")
public class CouponThemeConditionRequest extends AbstractConverter<CouponThemeConditionBo> {

    @ApiModelProperty(value = "券主题id")
    private Long themeId;

    @ApiModelProperty(value = "券主题名称")
    private String themeTitle;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @Override
    public CouponThemeConditionBo convert() {
        CouponThemeConditionBo bo = new CouponThemeConditionBo();
        BeanUtils.copyProperties(this, bo);
        return bo;
    }
}
